package com.tansun.easycare.rule.common.rulebasebean;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class DThen {

	private List<String> logsArr = new ArrayList<String>();
    private List<Action> listAction = new ArrayList<Action>();

    public String getRuleContent() {
        StringBuffer strBuffer = new StringBuffer();
        if (listAction.size() > 0) {
            Collections.sort(listAction);
            for (Action action : listAction) {
                strBuffer.append(action.getContent() + "\n");
            }
        }
        return strBuffer.toString();
    }

    public List<Action> getListAction() {
        return listAction;
    }

    public void setListAction(List<Action> listAction) {
        this.listAction = listAction;
    }

	public List<String> getLogsArr() {
		return logsArr;
	}

	public void setLogsArr(List<String> logsArr) {
		this.logsArr = logsArr;
	}
    
	public void addLogsArr(String param) {
		this.logsArr.add(param);
	}
}
